export const getScrollBarWidth = (element: HTMLElement): number => {
  return element.tagName === 'BODY'
    ? window.innerWidth - (document.documentElement.offsetWidth || document.body.offsetWidth)
    : element.offsetWidth - element.clientWidth;
};
